import React from "react";
import "./Modal.css";
export function Modal(props) {
  return (
    <div
      className="modal-cover"
      onClick={() => {
        props.onClose?.();
      }}
    >
      <div className="mask"></div>
      <div className="body">{props.children}</div>
    </div>
  );
}
